﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CardType.aspx.cs" Inherits="WebSite.admin.product.CardType" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>叶盟实业后台管理系统</title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        parent.contentmain.innerHTML = "<span class='title01'>所在位置：</span>礼品卡管理::礼品卡类别"
    </script>
    <script language='javascript' type="text/javascript">
        var path = (window.top.location).toString();
        if (path.indexOf('login.aspx') == -1) {
            if (path.indexOf('index.aspx') == -1) {
                window.top.location = 'index.aspx';
            }
        }

        function checkForm() {
            var area = document.getElementById('<%=this.txtCardType.ClientID %>');
            if (area.value == "") {
                alert("礼品卡类别不能为空!");
                area.focus();
                return;
            }

        }
	</script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="line-height:40px">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  <div style="width:50%">
  <div style="width:100%; text-align:left;"> 
  
  专区：<asp:DropDownList ID="ddlProfessionArea" runat="server" 
          AutoPostBack="True" 
          onselectedindexchanged="ddlProfessionArea_SelectedIndexChanged"></asp:DropDownList>
  卡片类别：<asp:TextBox ID="txtCardType" 
          runat="server" Width="220px"></asp:TextBox> 
          
           <asp:ImageButton ID="ibtnAdd" ImageUrl="../images/btnAdd.gif"   runat="server" OnClick="ibtnAdd_Click" />
 </div>

  <asp:GridView ID="GridView1" runat="server" Width="100%" CellPadding="4" ForeColor="#333333" DataKeyNames="CardTypeId" AutoGenerateColumns="False" AllowPaging="True" pagesize="30" BorderStyle="Solid" BorderWidth="1px" 
      ShowFooter="false" EmptyDataText="没有数据记录！！" >
        <Columns>
         
   
        <asp:BoundField HeaderText="礼品卡类别" DataField="CardTypeName"  />
        <asp:BoundField HeaderText="所属专区" DataField="ProfessionAreaTypeName"  />
      
        <asp:TemplateField ShowHeader="False" HeaderText="操作">
             <ItemTemplate>
               <a href="cardType.aspx?action=del&amp;id=<%# Eval("CardTypeId") %>" onclick="return confirm('确认要删除吗?')"  title="删除"><img height="16" src="../images/icon_drop.gif" width="16" border="0" /></a>
             </ItemTemplate>
        </asp:TemplateField>
        </Columns>
             <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />             
             <PagerStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Center" Font-Bold="True" Font-Size=30px />
             <HeaderStyle BackColor="#E2E7EB" Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" />
             <AlternatingRowStyle BackColor="White" />
             <PagerSettings Visible="False" />
        </asp:GridView>
   <table width="90%" border="0" cellspacing="0" cellpadding="0">
       <tr>
         <td height="25" align="right" bgcolor="#E9ECEF"><asp:Label ID="LblRecordCount" runat="server"></asp:Label>
            <asp:Label ID="LblCurrentIndex" runat="server"></asp:Label>
            <asp:Label ID="LblPageCount" runat="server"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="btnFirst" CommandArgument="first" OnClick="PagerButtonClick" runat="server">首 页</asp:LinkButton> 
            <asp:LinkButton ID="btnPrev" CommandArgument="prev" OnClick="PagerButtonClick" runat="server">上一页</asp:LinkButton> 
            <asp:LinkButton ID="btnNext" CommandArgument="next" OnClick="PagerButtonClick" runat="server">下一页</asp:LinkButton> 
            <asp:LinkButton ID="btnLast" CommandArgument="last" OnClick="PagerButtonClick" runat="server">尾 页</asp:LinkButton> 
             跳转到第<asp:DropDownList ID="ddlCurrentPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"> </asp:DropDownList>页&nbsp;
         </td>
       </tr>
    </table>
    </div>
</td>
    </tr>
  </table>
    </div>
    </form>
</body>
</html>
